const os = require('os');
const pkg = require('../package.json');

exports.AppId = '<PLEASE APPLY YOUR ACCESS KEY>';
exports.AppSecret = '<DONT SEND YOUR SECRET KEY TO ANYONE>';
exports.Gateway = '<PLEASE APPLY YOUR GATEWAY>';

function QHConfig (AppId, AppSecret, Gateway) {
    this.AppId = AppId;
    this.AppSecret = AppSecret;
    this.Gateway = Gateway;
}

var defaultUserAgent = function () {
    return 'QHNodejs/' + pkg.version + ' (' + os.type() + '; ' + os.platform() + '; ' + os.arch() + '; )';
};

exports.USER_AGENT = defaultUserAgent();

// define api form mime type
exports.FormData = 'multipart/form-data;charset=UTF-8';
exports.FormMimeJson = 'application/json';
exports.FormMimeRaw = 'application/octet-stream';

module.exports = exports = QHConfig;
